{% load commenttags %}
{% load markup %}
{% load pp_url %}

<div style="margin-left: {{ node.get_depth }}em;" class="comment"
           id="comment_{{ node.id }}">
        <div>
          {{ node.user.username }}, on {{ node.created }}, said:
        </div>
        <div>
          {{ node.text|linebreaks }}
        </div>
        <div>
          {% ifequal node.get_depth 1 %}
            <a href="{{ node.get_absolute_url }}">#</a>
            ({{ count }}
            comment{{ count|pluralize }} in this conversation)
          {% else %}
            <a href="#comment_{{ node.id }}">#</a>
            ({{ count }}
            repl{{ count|pluralize:"y,ies" }})
          {% endifequal %}
           <a href="javascript:;" onmousedown="toggleSlide('add_reply{{node.id}}');">reply</a> (<a href="{{ node.get_absolute_url }}delete/">delete</a>)
             <div id="add_reply{{node.id}}" style="display:none; overflow:hidden; height:200px;">
            {% pp_comment_form2 POST=request.POST path=request.path user=request.user object=node%}
                {{ pp_comment.form.errors }}
                    <form method="post" action="">
                        {{ pp_comment.form.text}} 
                        {{ pp_comment.form.parent}}
                        {{pp_comment.form.form_id}}
                        {% csrf_token %}
                    <input type="submit" class='button green' value="Submit Comment">
                    </form>
            {% endpp_comment_form2 %}
            </div>
        </div>
      </div>
